import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../../AppConfig/Config.dart';

class TransactionInformation extends StatefulWidget {
  const TransactionInformation({super.key});

  @override
  State<TransactionInformation> createState() => _TransactionInformationState();
}

class _TransactionInformationState extends State<TransactionInformation> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: MyColors.backgreyColor,
      appBar: AppBar(
        centerTitle: true,
        backgroundColor: Colors.white,
        leading: IconButton(icon: Icon(Icons.arrow_back_ios,color: Colors.black,),onPressed: (){Navigator.pop(context);},),
        title: Text("交易信息",style: TextStyle(fontWeight: FontWeight.w300,fontSize: 16.sp),),
      ),
      body: ListView(
        children: [
          Container(
            margin: EdgeInsets.only(left: 20.w,top: 8.h),
            child: Text("运单信息",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
          ),
          Container(
            margin: EdgeInsets.only(left: 10.w,right: 10.w,top: 8.h),
            padding: EdgeInsets.only(left: 10.w,right: 10.w,top: 10.h,bottom: 10.h),
            decoration: BoxDecoration(
                color: Colors.white,
                borderRadius: BorderRadius.all(Radius.circular(10))),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text("使用目的",style: TextStyle(color: MyColors.textColor,fontSize: 14.sp,fontWeight: FontWeight.w600),),
                Text("按照《电子商务法》要求保存您在平台交易的运单记录",style: TextStyle(color: MyColors.textColor,fontSize: 12.sp),),
                Divider(height: 16.h,color: MyColors.backgreyColor,),
                Text("使用场景",style: TextStyle(color: MyColors.textColor,fontSize: 14.sp,fontWeight: FontWeight.w600),),
                Text("用户在平台交易时",style: TextStyle(color: MyColors.textColor,fontSize: 12.sp),),
              ],
            ),
          ),
          Container(
            margin: EdgeInsets.only(left: 20.w,top: 8.h),
            child: Text("钱包交易信息",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
          ),
          Container(
            margin: EdgeInsets.only(left: 10.w,right: 10.w,top: 8.h),
            padding: EdgeInsets.only(left: 10.w,right: 10.w,top: 10.h,bottom: 10.h),
            decoration: BoxDecoration(
                color: Colors.white,
                borderRadius: BorderRadius.all(Radius.circular(10))),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text("使用目的",style: TextStyle(color: MyColors.textColor,fontSize: 14.sp,fontWeight: FontWeight.w600),),
                Text("我们会按照《电子商务法》《反洗钱法》等法规要求保存在您在平台的资金交易记录",style: TextStyle(color: MyColors.textColor,fontSize: 12.sp),),
                Divider(height: 16.h,color: MyColors.backgreyColor,),
                Text("使用场景",style: TextStyle(color: MyColors.textColor,fontSize: 14.sp,fontWeight: FontWeight.w600),),
                Text("用户使用支付相关资金服务时",style: TextStyle(color: MyColors.textColor,fontSize: 12.sp),),
              ],
            ),
          ),
          Container(
            margin: EdgeInsets.only(left: 20.w,top: 8.h),
            child: Text("银行卡信息",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
          ),
          Container(
            margin: EdgeInsets.only(left: 10.w,right: 10.w,top: 8.h),
            padding: EdgeInsets.only(left: 10.w,right: 10.w,top: 10.h,bottom: 10.h),
            decoration: BoxDecoration(
                color: Colors.white,
                borderRadius: BorderRadius.all(Radius.circular(10))),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text("使用目的",style: TextStyle(color: MyColors.textColor,fontSize: 14.sp,fontWeight: FontWeight.w600),),
                Text('帮助用户完成"钱包"服务的实名认证，使用用户所持银行卡对应发卡行的支持服务',style: TextStyle(color: MyColors.textColor,fontSize: 12.sp),),
                Divider(height: 16.h,color: MyColors.backgreyColor,),
                Text("使用场景",style: TextStyle(color: MyColors.textColor,fontSize: 14.sp,fontWeight: FontWeight.w600),),
                Text('1.用户进行"钱包"服务实名认证时',style: TextStyle(color: MyColors.textColor,fontSize: 12.sp),),
                Text('2.用户首次绑定银行卡时',style: TextStyle(color: MyColors.textColor,fontSize: 12.sp),),
                Text('3.用户使用支付服务时',style: TextStyle(color: MyColors.textColor,fontSize: 12.sp),),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
